package org.example.action;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.example.utils.Action;

import java.io.IOException;

/**
 * 示例hander 每创建一个hander就要去Router里注册（这里没有用注解去注册 懒省事
 */
public class IndexAction implements Action {
    public void index(HttpServletRequest req, HttpServletResponse res) throws IOException {
        res.getWriter().write("hello world");
    }
}
